<!DOCTYPE html>
<html>
<head>
	<title>花礼网登录</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="/styles/head_foot.css">
	<link rel="stylesheet" type="text/css" href="/styles/user.css">
	<script type="text/javascript" src="/bower_components/jquery/dist/jquery.min.js"></script>
	<script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
	<style type="text/css">
		#nav{
			display: none;
		}
	</style>
</head>
<body>
	<% include header.ejs %>
	<div id="all_content">
		<div class="container">
			<div class="row">
				<div class="col-xs-4 col-xs-offset-2">
					<img src="images/hlbj.png">
				</div>
				<div class="login col-xs-4 pull-right">
					<div id="article_list">
						<ul class="nav nav-tabs" role="tablist">
							<li role="presentation" class="active login" id="lo"><a href="login" role="tab" data-toggle="tab" ">登录</a></li>
							<li ><a href="register">注册</a></li>
							
						</ul>
						<div class="tab-content">
							<div role="tabpanel" class="tab-pane active" id="login">
								<a href="" class="pull-right phone_x">使用手机验证码登录</a><br/>
								<form action="dologin" method="POST">
									<div class="form-group">
									  <span class="icone_use1"></span>
									  <input  type="text"  name="username"  placeholder="E-mail地址/手机号" class="pt">
									</div>
									<div class="form-group">
									  <span class="icone_use2"></span>
									  <input type="password"  name="password" placeholder="用户密码" class="pt">
									</div>
									<a href="/member/changePassword" class="pull-right forget">忘记密码？</a><br>
									<button id="submit" type="submit" class="btn btn-warning btn-lg">登录</button>
								</form>
								<p class="tab_bottom"><a href=""> 微信</a> |<a href=""> QQ </a>| <a href="">支付宝</a></p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<% include footer.ejs %>
</body>
</html>
<script type="text/javascript">
	$(function(){
			$("#submit").click(function(){
	    		$.post("dologin",
	    	{
	    	username:$("input[name='username']").val(),
	    	password:$("input[name='password']").val(),
	    	password_again:$("input[name='password_again']").val()
    	},
	    function(response,status){
	      	if (response=='ok') {
	      		window.location.href="/"	
	      	}else{
	      		alert(response);
	      	}
	    })
	    	return false;
	  	});
	})
</script>